<template>
  <el-row>
    <div class="input">
      <el-input v-if="question.style==='text'" :placeholder="question.placeholder" v-model="inputVal" size="small"></el-input>
      <el-input v-if="question.style==='number'" :placeholder="question.placeholder" v-model.number="inputVal" size="small"></el-input>
    </div>
  </el-row>
</template>

<script>
  export default {
    name: "view-i-text",
    props: ['question'],
    data(){
      return {
        inputVal:null
      }
    },
    created() {
      //console.log(this.question)
    },
    methods: {
    }
  }
</script>

<style lang="scss">
  .input {
  }
</style>
